#ifndef _UDP_RECIPE_FETCH_H_
#define _UDP_RECIPE_FETCH_H_

typedef enum 
{
    TASK_STATUS_IDLE,
    DOMAIN_TO_IP,
    CONNECT_TO_TC_SERVER,
    CONNECT_TO_DS_SERVER,
    GET_RECIPE_SUCCESS,
    SERVER_ERROR,
}UDP_TaskStatus_t;

typedef enum
{
    ERR_NONE_,
    ERR_TC_,
    ERR_DS_,
    ERR_ID_,
    ERR_OVER_LIFE_
}running_err_t;

void recipeFetchTask(void *param);
running_err_t getRecipeFromDS(char *recipeInfor, char *respBuffer, int inforlen, int *respLen);

#endif